package GUI;

public class ProductPopup extends javax.swing.JFrame {

    /**
     * Creates new form ProductPopup
     */
    public ProductPopup() {
        initComponents();
    }

    private void initComponents() {

        container = new javax.swing.JPanel();
        content = new javax.swing.JPanel();
        cntInput = new javax.swing.JTextField();
        codProductLabel = new javax.swing.JLabel();
        codProduct = new javax.swing.JLabel();
        cntLabel = new javax.swing.JLabel();
        artLabel = new javax.swing.JLabel();
        artInput = new javax.swing.JTextField();
        precioLabel = new javax.swing.JLabel();
        precioInput = new javax.swing.JTextField();
        productSave = new javax.swing.JButton();
        IVA = new javax.swing.JLabel();
        total = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Articulo");

        container.setBackground(new java.awt.Color(255, 0, 0));

        content.setBackground(new java.awt.Color(246, 191, 191));

        cntInput.setText("0");
        cntInput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cntInputActionPerformed(evt);
            }
        });

        codProductLabel.setFont(new java.awt.Font("Open Sans", 1, 14)); // NOI18N
        codProductLabel.setText("Codigo:");

        codProduct.setText("928r1r12");

        cntLabel.setFont(new java.awt.Font("Open Sans", 1, 14)); // NOI18N
        cntLabel.setText("Cantidad:");

        artLabel.setFont(new java.awt.Font("Open Sans", 1, 18)); // NOI18N
        artLabel.setText("Articulo:");

        artInput.setText("Comida para gatos");
        artInput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                artInputActionPerformed(evt);
            }
        });

        precioLabel.setFont(new java.awt.Font("Open Sans", 1, 18)); // NOI18N
        precioLabel.setText("Precio:");

        precioInput.setText("88311313");

        productSave.setText("Save");
        productSave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                productSaveActionPerformed(evt);
            }
        });

        IVA.setText("+ XX I.V.A = ");

        total.setText("XXXX");

        javax.swing.GroupLayout contentLayout = new javax.swing.GroupLayout(content);
        content.setLayout(contentLayout);
        contentLayout.setHorizontalGroup(
            contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(contentLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(contentLayout.createSequentialGroup()
                        .addComponent(codProductLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(codProduct)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(cntLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cntInput, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(37, 37, 37))
                    .addGroup(contentLayout.createSequentialGroup()
                        .addGroup(contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(artLabel)
                            .addGroup(contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, contentLayout.createSequentialGroup()
                                    .addComponent(precioLabel)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(precioInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(IVA)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(total))
                                .addComponent(artInput, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(productSave)))
                        .addContainerGap(19, Short.MAX_VALUE))))
        );
        contentLayout.setVerticalGroup(
            contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(contentLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(codProductLabel)
                    .addComponent(codProduct)
                    .addComponent(cntLabel)
                    .addComponent(cntInput, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(artLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(artInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(contentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(precioLabel)
                    .addComponent(precioInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IVA)
                    .addComponent(total))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(productSave)
                .addContainerGap())
        );

        javax.swing.GroupLayout containerLayout = new javax.swing.GroupLayout(container);
        container.setLayout(containerLayout);
        containerLayout.setHorizontalGroup(
            containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, containerLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(content, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        containerLayout.setVerticalGroup(
            containerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(containerLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(content, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(container, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(container, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }
    //TODO Action Listeners
    private void cntInputActionPerformed(java.awt.event.ActionEvent evt) {
    }

    private void artInputActionPerformed(java.awt.event.ActionEvent evt) {
    }

    private void productSaveActionPerformed(java.awt.event.ActionEvent evt) {
    }
    
    //TODO Var Declaration
    private javax.swing.JLabel IVA;
    private javax.swing.JTextField artInput;
    private javax.swing.JLabel artLabel;
    private javax.swing.JTextField cntInput;
    private javax.swing.JLabel cntLabel;
    private javax.swing.JLabel codProduct;
    private javax.swing.JLabel codProductLabel;
    private javax.swing.JPanel container;
    private javax.swing.JPanel content;
    private javax.swing.JTextField precioInput;
    private javax.swing.JLabel precioLabel;
    private javax.swing.JButton productSave;
    private javax.swing.JLabel total;
}
